-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Infinite Geocoders, Support Offline Geocoder #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my first comments.
env.example.yml
Outdated
|
||
REDIS_HOST: (optional) <insert IP of redis host here> | ||
REDIS_KEY: (optional) <insert redis password here> | ||
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can this be a JSON array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's stringified!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Can you just tweak:
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> | |
GEOCODERS: <Stringified JSON Array of OTP-UI `GeocoderConfig`s> |
env.example.yml
Outdated
REDIS_HOST: (optional) <insert IP of redis host here> | ||
REDIS_KEY: (optional) <insert redis password here> | ||
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> | ||
BACKUP_GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s. Same length as GEOCODERS> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are backup geocoders supposed to be in the same order as the main ones? Is each backup geocoder at a given index supposed to be of the same kind as the main one? If so, would it make sense to write something like:
GEOCODERS:
- main:
...
backup:
...
- main:
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would make sense but we're dealing with serverless which loads all these in as env variables. Doing what you suggest is technically possible but would be a huge overhead to implement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing, just tweak the comment:
BACKUP_GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s. Same length as GEOCODERS> | |
BACKUP_GEOCODERS: <Stringified JSON Array of OTP-UI `GeocoderConfig`s. Same length and order as GEOCODERS> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the indicated comment tweaks.
env.example.yml
Outdated
|
||
REDIS_HOST: (optional) <insert IP of redis host here> | ||
REDIS_KEY: (optional) <insert redis password here> | ||
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Can you just tweak:
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> | |
GEOCODERS: <Stringified JSON Array of OTP-UI `GeocoderConfig`s> |
env.example.yml
Outdated
REDIS_HOST: (optional) <insert IP of redis host here> | ||
REDIS_KEY: (optional) <insert redis password here> | ||
GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s> | ||
BACKUP_GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s. Same length as GEOCODERS> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing, just tweak the comment:
BACKUP_GEOCODERS: <JSON Array of OTP-UI `GeocoderConfig`s. Same length as GEOCODERS> | |
BACKUP_GEOCODERS: <Stringified JSON Array of OTP-UI `GeocoderConfig`s. Same length and order as GEOCODERS> |
Great suggestions thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, a few suggestions but nothing blocking.
Updates to latest geocoder package, introduces breaking change that allows for UNLIMITED GEOCODERS
When deploying, be sure to disable api gateway caching. It's not longer compatible